#!/bin/bash

if [[ $(whoami) != root ]]; then
    echo "must run as root"
    exit
fi

echo 'SUBSYSTEM=="module", KERNEL=="bridge", ACTION=="add", RUN+="/bin/sh -c '"'"'echo 0 > /proc/sys/net/bridge/bridge-nf-call-arptables; echo 0 > /proc/sys/net/bridge/bridge-nf-call-ip6tables; echo 0 > /proc/sys/net/bridge/bridge-nf-call-iptables;'"'"'"' > /etc/udev/rules.d/bridge.rules
